#ifndef __TINYSRV_ISELECTOR_CALLBACK_H__
#define __TINYSRV_ISELECTOR_CALLBACK_H__


namespace tinySrv
{

  struct ISelectorCallback
  {
    enum SelectType { stUnknown, stOnConnect, stOnRead, stOnClose };
    virtual bool ProcessSocket(int sock, SelectType type, void *data) = 0;
    virtual ~ISelectorCallback()
    {
    }
  };

}

#endif  // !__TINYSRV_ISELECTOR_CALLBACK_H__
